//
// Created by fanghr on 17-12-31.
//

#ifndef PROJECT_THREAD_GET_RAW_H
#define PROJECT_THREAD_GET_RAW_H

#include "raw_data.h"
#include "global_var.h"

void start_left(){
    get_raw(0,cam_global::raw.left);
}

void start_right(){
    get_raw(1,cam_global::raw.right);
}

void start_middle(){
    get_raw(1,cam_global::raw.middle);
}

void thread_get_raw(){
    boost::thread left(&start_left);
    boost::thread middle(&start_middle);
    boost::thread right(&start_right);
}

#endif //PROJECT_THREAD_GET_RAW_H
